FROM tutum/apache-php:latest
MAINTAINER loulan

# Install plugins
RUN apt-get update && \
  apt-get -y install php5-gd && \
  apt-get -y install php5-curl && \
  apt-get -y install curl && \
  apt-get -y install unzip && \
  rm -rf /var/lib/apt/lists/*

RUN curl -o douphp.zip -SL http://7xm4v5.com1.z0.glb.clouddn.com/douphp.zip \
    && unzip douphp.zip -d douphp \
    && mv douphp/upload/*  /app \
    && rm -rf douphp/* \
    && rm -rf douphp.zip
    
VOLUME  ["/app/uploads", "/app/system"]

CMD ["/run.sh"]